﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace XRoute.DataExchange
{
    [DataContract(Name = "NodePosition", Namespace = Contracts.Namespace)]
    public class NodePositionContract
    {
        ///////////////////////////////////////////////////////////////////////

        [DataMember(Name = "X")]
        readonly int _x;

        [DataMember(Name = "Y")]
        readonly int _y;


        ///////////////////////////////////////////////////////////////////////

        public NodePositionContract(int x, int y)
        {
            _x = x;
            _y = y;
        }

        public int X
        {
            get { return _x; }
        }

        public int Y
        {
            get { return _y; }
        }
    }
}
